package com.ssm.service.impl;

import com.ssm.bean.Account;
import com.ssm.dao.IAccountDao;
import com.ssm.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AccountServiceImpl implements IAccountService {
    @Autowired
    private IAccountDao iAccountDao;

    @Override
    public List<Account> findAll() {
        System.out.println("业务层：查询所有账户。。。");

        return iAccountDao.findAll();
    }

    @Override
    public void saveAccount(Account account) {
        System.out.println("业务层：保存账户。。。");
        iAccountDao.saveAccount(account);
    }
}
